<?php


namespace app\mini\controller;

// use app\BaseController as BaseController;
use app\mini\model\PersonService as PersonServiceModel;
use think\response\Json;


class PersonService extends Access
{
	/**
     * 服务详情
     * @return Json
     * @author hz
     * @create 2021-10-19
     */
    public function service(): Json
    {
    	$this->param = request()->param();
        $personServiceModel = new PersonServiceModel();
        $this->param['customer_id'] = $this->customerId; // 员工端则为员工id
        $data = $personServiceModel->getServiceList($this->param);
        return resultArray($data);
    }

    /**
     * 服务记录
     * @return Json
     * @author hz
     * @create 2021-10-19
     */
    public function serviceLog(): Json
    {
        $this->param = request()->param();
        $personServiceModel = new PersonServiceModel();
        $this->param['customer_id'] = $this->customerId;// 员工端则为员工id
        $data = $personServiceModel->getServiceLogList($this->param);
        return resultArray($data);
    }

}